/**
 * Created by Administrator on 2017/5/7 0007.
 */
var http = require('http');
function sendSms(msg,phone){
    var url ="http://sms.253.com/msg/send?un=N4014922&pw=QcMXuUO7Sp469d&rd=1";
    url += "&phone="+phone;
    url += "&msg="+encodeURI(msg)+"&encode=utf-8";
    //console.log(url);
    http.get(url, function(res) {
        console.log("Got response: " + res.statusCode);
    }).on('error', function(e) {
        console.log("Got error: " + e.message);
    });
}
exports.sendSms= sendSms;
